#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

#include"mythread.h"
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_threadStart_clicked();

    void on_pushButton_stopThread_clicked();

    void UpdateLable(int id);

    void setdata(QList<int> data);
private:
    Ui::MainWindow *ui;
    QList<int> listdata;
    MyThread*mythread =nullptr;
};
#endif // MAINWINDOW_H
